#include "AtlasBase.h"

namespace Atlas
{

	void AtlasInit()
	{
	}

	void AtlasFini()
	{
	}

	static char g_atlas_base_dir[1000] = "";

	const char* AtlasBaseDir()
	{
		if(g_atlas_base_dir[0]) return g_atlas_base_dir;
		char path[MAX_PATH];
		char* p;
		GetModuleFileName(NULL, path, MAX_PATH);
		p = strrchr(path, '\\');
		if(!p) return NULL;
		*p = '\0';
		strcat(path, "\\..\\..");
		strcpy(g_atlas_base_dir, path);
		return g_atlas_base_dir;
	}

};
